package com.springsummer.information.green.io;

import com.springsummer.information.green.common.HelloTwo;

import java.io.IOException;

public class ClasspathResourceTest {

    public static void main(String[] args) throws IOException {
        //ClassPathResource classPathResource=new ClassPathResource("spring-one.xml");
        //System.out.println(classPathResource.getURL().getPath());

        System.out.println(HelloTwo.class.getResource("/com/springsummer/information/green/common/HelloTwo.class"));

        //System.out.println(HelloTwo.class.getResource("/com/spring/campusall/springsource/SpringSourceStudy.class"));


        //path 开始去掉/
        ClassPathResource classPathResource2=new ClassPathResource("com/springsummer/information/green/common/HelloTwo.class");
        System.out.println(classPathResource2.getURL().getPath());
    }
}
